package com.skyable.account.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.skyable.account.entity.SysCompanyApply;
import com.skyable.common.common.ServiceResult;

import java.util.List;

/**
 * @author GaoYuan
 * @title: ICompanyApplyService
 * @projectName private-cloud
 * @description: TODO
 * @date 2021/6/3013:37
 */
public interface ICompanyApplyService extends IService<SysCompanyApply> {

    /**
     * 租户申请
     * @param sysCompanyApply
     * @return
     */
    ServiceResult<SysCompanyApply> sysCompanyApply(SysCompanyApply sysCompanyApply);

    /**
     * 审核用户申请
     * @param id
     * @param applyStatus
     * @param applyAdvice
     * @return
     */
    ServiceResult<SysCompanyApply> adviceCompanyApply(Long id, Integer applyStatus, String applyAdvice);

    /**
     * 获取用户申请列表
     * @param sysCompanyApply
     * @param page
     * @param limit
     * @return
     */
    ServiceResult<Page<SysCompanyApply>> sysCompanyApplyList(SysCompanyApply sysCompanyApply, Integer page, Integer limit);
}
